package service

import (
	"palms/model"
	"palms/repository"
)

type RoomService interface {
	Save(room model.Room) error

	ChangeTopic(room model.Room) error
}

func NewRoomService(repo repository.RoomRepository) RoomService {
	return &roomService{
		repo: repo,
	}
}

type roomService struct {
	roomService RoomService
	repo        repository.RoomRepository
}

func (s *roomService) ChangeTopic(room model.Room) error {
	return s.repo.UpdateTopic(room)
}

func (s *roomService) Save(room model.Room) error {
	return nil
}
